CREATE TABLE [dbo].[TCAMAR_ANTC]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[CO_UNID_CONC] [dbo].[TD_VC_003] NOT NULL,
[NU_AMAR] [dbo].[TD_VC_008] NOT NULL,
[FE_AMAR] [dbo].[TD_DT_001] NOT NULL,
[CO_TIPO_OPER] [dbo].[TD_VC_003] NOT NULL,
[CO_BANC] [dbo].[TD_VC_003] NULL,
[NU_CNTA_BANC] [dbo].[TD_VC_020] NULL,
[AA_BNCO] [dbo].[TD_VC_004] NULL,
[MM_BNCO] [dbo].[TD_VC_002] NULL,
[NU_COMP_BANC] [dbo].[TD_VC_008] NULL,
[FE_OPER] [dbo].[TD_DT_001] NOT NULL,
[CO_CAJA] [dbo].[TD_VC_008] NULL,
[NU_CHEQ] [dbo].[TD_VC_020] NULL,
[AA_CAJA] [dbo].[TD_VC_004] NULL,
[MM_CAJA] [dbo].[TD_VC_002] NULL,
[CO_MONE] [dbo].[TD_VC_003] NOT NULL,
[FA_TIPO_CAMB] [dbo].[TD_NU_015_006] NOT NULL,
[NU_COMP_CAJA] [dbo].[TD_VC_008] NULL,
[IM_MOVI] [dbo].[TD_NU_016_004] NOT NULL CONSTRAINT [DF__TCAMAR_AN__IM_MO__014935CB] DEFAULT ((0)),
[TI_ENTI] [dbo].[TD_VC_001] NULL,
[CO_ENTI] [dbo].[TD_VC_020] NULL,
[TI_SITU] [dbo].[TD_VC_003] NOT NULL,
[DE_OBSE] [dbo].[TD_VC_100] NULL,
[NU_PLAN] [dbo].[TD_VC_010] NULL,
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TCAMAR_AN__CO_US__023D5A04] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TCAMAR_AN__FE_US__03317E3D] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TCAMAR_AN__CO_US__0425A276] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TCAMAR_AN__FE_US__0519C6AF] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TCAMAR_ANTC] ADD CONSTRAINT [PK__TCAMAR_A__DA2E927F5051C40C] PRIMARY KEY CLUSTERED  ([CO_EMPR], [CO_UNID_CONC], [NU_AMAR], [FE_AMAR]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TCAMAR_ANTC] ADD CONSTRAINT [FK__TCAMAR_AN__CO_EM__67DF34DA] FOREIGN KEY ([CO_EMPR]) REFERENCES [dbo].[TMPARA_TESO] ([CO_EMPR])
GO
